package com.beiing.tianshuai.tianshuai.rx;

/**
 * 用于在rxBus传递消息的时候存储信息的bean
 *
 * @author magikliu
 * @date 2017/9/24
 */

public class MsgEvent<T> {

    private String type;
    private T data;
    private int position;
    private int eventType;

    public MsgEvent(String type, T data, int position) {
        this.type = type;
        this.data = data;
        this.position = position;
    }


    public String getType() {
        return type;
    }

    public T getData() {
        return data;
    }

    public int getPosition() {
        return position;
    }

    public void setType(String type) {
        this.type = type;
    }

    public void setData(T data) {
        this.data = data;
    }

    public void setPosition(int position) {
        this.position = position;
    }

    public int getEventType() {
        return eventType;
    }

    public void setEventType(int eventType) {
        this.eventType = eventType;
    }

    public MsgEvent(String type) {
        this.type = type;
    }

    public MsgEvent(String type, T data) {
        this.type = type;
        this.data = data;
    }
}
